package com.cyf.db.mapper;

import com.cyf.db.bean.EbRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * eb消费记录
 * Created by hfy on 2017/5/4.
 */

public interface EbRecordMapper {

    @Insert("insert into eb_record(bookingId, createdTime, oldFee, fee, newFee) " +
            "values(#{ebRecord.bookingId}, #{ebRecord.createdTime}, #{ebRecord.oldFee}, #{ebRecord.fee}, #{ebRecord.newFee})")
    void insertEbRecord(@Param("ebRecord") EbRecord ebRecord);
}
